<% breadcrumb.add @model.description, edit_backend_snippet_path(@model) %>
<% breadcrumb.add t('b.edit') %>
<%= render 'backend/breadcrumbs' %>

<%= render 'backend/snippets/tabs', active: params[:translation_locale].to_sym %>

<%= simple_form_for([:backend, @translation], url: edit_translation_backend_snippet_path) do |f| %>

  <div class="card">
    <div class="card-header">
      <%= t 'b.content' %>
    </div>

    <div class="card-block">
      <%= f.input :title, as: :string %>

      <% content_type = @model.editor_for_content? ? :ckeditor : :text %>
      <%= f.input :content, as: content_type %>
    </div>
  </div>

  <%= render 'backend/form_actions', cancel_url: backend_snippets_path %>
<% end %>
